package MathTest;

import MathTest.Factory.ChineseFactory;
import MathTest.Factory.EnglishFactory;
import MathTest.Factory.TChineseFactory;
import MathTest.Question.Test;

import java.util.Scanner;

public class Student {
    static MyTest myTest;
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("中文? English? 繁体?");
        String lan = in.next();
        if(lan.equals("中文"))
            myTest = new MyTest(new ChineseFactory());
        else if(lan.equals("English"))
            myTest = new MyTest(new EnglishFactory());
        else
            myTest = new MyTest(new TChineseFactory());
        myTest.Print("a");
        myTest.setGrade(in.nextInt());
        myTest.Print("b");
        myTest.setN(in.nextInt());
        myTest.MyTest(new Test());
    }
}
